# -*- coding: utf-8 -*-
# @Time    : 2021/11/06 21:21
# @Author  : XIEHAO
# @Email   : xiehao_1989@126.com
# File     : urls.py
# @Software: PyCharm
from rest_framework.routers import DefaultRouter  # 导入默认路由器
from .views import ClassesViewSet  # 导入视图

urlpatterns = [

]

router = DefaultRouter()  # 实例化一个路由器对象
router.register('classes', ClassesViewSet)  # 将视图函数注册进入路由器对象，路由名为classes
urlpatterns += router.urls  # 实际的路由为app路由+路由器注册的路由
